package cn.train.service;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import cn.train.dao.IQueryCheXiang;
import cn.train.model.CheXiang;
import cn.train.util.SqlSessionFactoryUtil;

public class QueryCXService {
	SqlSession session = SqlSessionFactoryUtil.getSqlSession();
    IQueryCheXiang queryche = session.getMapper(IQueryCheXiang.class);
//    商务车厢号
 public List<CheXiang> QuerySwid(int piao,int piao1){
	
	 return queryche.QuerySwid(piao,piao1);
 }
 // 普通车厢号
 public List<CheXiang> QueryPtid(int piao,int piao1){
	
	 return queryche.QueryPtid(piao,piao1);
 }
 //站票
 public int QueryZhid(int piao){
		
	 return queryche.QueryZhid(piao);
 }
 

}
